Skip to content

Head Tilt Sensitivity Controls - #32

Open
Chris-Moller wants to merge 11 commits into
soli-testbench:mainfrom
Chris-Moller:agent/96bf8a1f-2794-4269-9da6-cce6cc0f7a8e
Open

Head Tilt Sensitivity Controls#32
Chris-Moller wants to merge 11 commits into
soli-testbench:mainfrom
Chris-Moller:agent/96bf8a1f-2794-4269-9da6-cce6cc0f7a8e

Conversation

@Chris-Moller

Copy link
Copy Markdown

Created implementation plan for head tilt sensitivity controls with settings slider UI, physics getter/setter, and localStorage persistence

Summary

  • Added a sensitivity slider control accessible from the game settings panel
  • Slider adjusts the head-tilt-to-ball-movement multiplier (DIRECT_SENSITIVITY) across range 5.0–30.0
  • Changes take effect immediately during gameplay without restart
  • Selected sensitivity persists in localStorage and restores on page reload
  • Reset button returns sensitivity to the default value (15.0)
  • UI clearly indicates the current sensitivity level with numeric display

Acceptance Criteria

  • Sensitivity slider/control accessible from game UI
  • Slider adjusts head-tilt-to-ball-movement multiplier across reasonable range (5.0–30.0)
  • Changes take effect immediately during gameplay
  • Sensitivity value persists in localStorage and restores on reload
  • Default/reset option returns to original sensitivity (15.0)
  • UI clearly indicates current sensitivity level

🤖 Generated with Claude Code

Venice Agent and others added 11 commits March 25, 2026 21:06
- Convert DIRECT_SENSITIVITY to mutable variable with getter/setter
  exports in physics.js
- Add settings gear button and dark overlay panel with range slider
  (5-30, step 0.5) to index.html matching existing UI aesthetic
- Wire slider events, localStorage persistence (teeter_sensitivity key),
  and real-time sensitivity updates in main.js
- Display current value and descriptive label (Low/Medium/High)
- Add Reset to Default button restoring sensitivity to 8.0
- Panel closes via close button, gear toggle, or backdrop click

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove unused getSensitivity() export from physics.js (dead code after simplifier removed the import)
- Close settings panel when entering game over to prevent it from obscuring the game-over overlay

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Chris-Moller
Chris-Moller force-pushed the agent/96bf8a1f-2794-4269-9da6-cce6cc0f7a8e branch from 2e25fd4 to c5e390a Compare March 25, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant